Skip to content

Conversation

@ElasticBottle
Copy link
Contributor

@ElasticBottle ElasticBottle commented Nov 22, 2024

https://linear.app/thirdweb/issue/CNCT-2363/export-private-key-not-working-with-connectbutton


PR-Codex overview

This PR enables private key export for enclave wallets during the initial login process, enhancing user experience and security.

Detailed summary

  • Added connectLocale prop to PrivateKey component.
  • Implemented useEffect to handle iframe messaging for private key export.
  • Replaced getThirdwebDomains with getThirdwebBaseUrl.
  • Updated the ModalHeader title to use localized text.
  • Set iframe id for exporting the wallet.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@linear
Copy link

linear bot commented Nov 22, 2024

@changeset-bot
Copy link

changeset-bot bot commented Nov 22, 2024

🦋 Changeset detected

Latest commit: 6b6f617

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 8:28pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 8:28pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 8:28pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 8:28pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 22, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 22, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.97 KB (0%) 900 ms (0%) 1.8 s (+82.24% 🔺) 2.7 s
thirdweb (cjs) 105.01 KB (0%) 2.2 s (0%) 2.7 s (-0.27% 🔽) 4.8 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 203 ms (+87.36% 🔺) 315 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 23 ms (-84.51% 🔽) 33 ms
thirdweb/react (minimal + tree-shaking) 18.38 KB (0%) 368 ms (0%) 274 ms (+20.58% 🔺) 642 ms

@ElasticBottle ElasticBottle added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 22, 2024
Copy link
Contributor Author

ElasticBottle commented Nov 22, 2024

Merge activity

  • Nov 22, 2:38 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 22, 3:17 PM EST: A user added this pull request to the Graphite merge queue.
  • Nov 22, 3:28 PM EST: A user merged this pull request with the Graphite merge queue.

@codecov
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 52 lines in your changes missing coverage. Please review.

Project coverage is 43.82%. Comparing base (91cea2d) to head (6b6f617).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../react/web/ui/ConnectWallet/screens/PrivateKey.tsx 0.00% 51 Missing ⚠️
...hirdweb/src/react/web/ui/ConnectWallet/Details.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5498      +/-   ##
==========================================
- Coverage   43.85%   43.82%   -0.03%     
==========================================
  Files        1075     1075              
  Lines       55944    55991      +47     
  Branches     3908     3907       -1     
==========================================
+ Hits        24534    24539       +5     
- Misses      30727    30769      +42     
  Partials      683      683              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 91cea2d
packages 38.55% <0.00%> (-0.03%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...hirdweb/src/react/web/ui/ConnectWallet/Details.tsx 1.05% <0.00%> (-0.01%) ⬇️
.../react/web/ui/ConnectWallet/screens/PrivateKey.tsx 1.72% <0.00%> (-1.14%) ⬇️

... and 2 files with indirect coverage changes

---- 🚨 Try these New Features:

…5498)

https://linear.app/thirdweb/issue/CNCT-2363/export-private-key-not-working-with-connectbutton

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces the ability to export private keys for enclave wallets upon initial login, enhancing wallet management functionality.

### Detailed summary
- Added `connectLocale` prop to the `PrivateKey` component.
- Implemented `useEffect` to handle postMessage for private key export.
- Changed base domain retrieval to use `getThirdwebBaseUrl`.
- Updated `ModalHeader` title to use localized string.
- Set iframe ID dynamically based on wallet ID.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@ElasticBottle ElasticBottle force-pushed the winston/cnct-2363-export-private-key-not-working-with-connectbutton branch from 3a5e4a6 to 6b6f617 Compare November 22, 2024 20:18
@graphite-app graphite-app bot merged commit 6b6f617 into main Nov 22, 2024
31 of 32 checks passed
@graphite-app graphite-app bot deleted the winston/cnct-2363-export-private-key-not-working-with-connectbutton branch November 22, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants